package com.zhiche.lisa.tms.dto;

import com.baomidou.mybatisplus.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单下发
 * </p>
 *
 * @author qichao
 * @since 2018-06-18
 */
public class OrderAssignDTO extends Model<OrderAssignDTO> {

    private static final long serialVersionUID = 1L;

	@JsonSerialize(using=ToStringSerializer.class)
	private Long id;
    /**
     * 订单编号
     */
	private String orderCode;
    /**
     * 订单货物编号
     */
	private Long orderItemCode;
    /**
     * 订单下发时间
     */
	private Date gmtAssign;
    /**
     * 下游系统接收订单日志
     */
	private String assignLog;
    /**
     * 委托单号（下游系统回写单号）
     */
	private String consignCode;
    /**
     * 委托单生成时间（下游系统回写单号时间）
     */
	private Date gmtConsign;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public Long getOrderItemCode() {
		return orderItemCode;
	}

	public void setOrderItemCode(Long orderItemCode) {
		this.orderItemCode = orderItemCode;
	}

	public Date getGmtAssign() {
		return gmtAssign;
	}

	public void setGmtAssign(Date gmtAssign) {
		this.gmtAssign = gmtAssign;
	}

	public String getAssignLog() {
		return assignLog;
	}

	public void setAssignLog(String assignLog) {
		this.assignLog = assignLog;
	}

	public String getConsignCode() {
		return consignCode;
	}

	public void setConsignCode(String consignCode) {
		this.consignCode = consignCode;
	}

	public Date getGmtConsign() {
		return gmtConsign;
	}

	public void setGmtConsign(Date gmtConsign) {
		this.gmtConsign = gmtConsign;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "OrderAssignDTO{" +
			", id=" + id +
			", orderCode=" + orderCode +
			", orderItemCode=" + orderItemCode +
			", gmtAssign=" + gmtAssign +
			", assignLog=" + assignLog +
			", consignCode=" + consignCode +
			", gmtConsign=" + gmtConsign +
			"}";
	}
}
